<form name="contractEditDocsForm" class="form-horizontal" novalidate style="width:350px;">

    <div class="form-group mt10">
        <span for="inputtext3" class="col-sm-5 control-label">附件类型</span>
        <div class="col-sm-18">
            <input id="idCompanyId" class="docsTypeBy" select2 required name="document_type" ng-model="document_type"
                   select2-model="ddl2Docs" config="ddlConfigDocsType"
                   class="form-control" type="text"/>
                    <span role="alert"
                          ng-show="(contractEditDocsForm.$submitted || contractEditDocsForm.document_type.$touched) && contractEditDocsForm.document_type.$error.required"
                          class="error ng-hide c-red lh30">请选择附件类型</span>
        </div>
    </div>

    <div class="form-group mt10">
        <div class="col-sm-18 mt20">

            <div  id="fileupload" class="fileinput-button btn btn-green">
                <span class="f13">上传附件</span>
                <input type="file" name="file" accept=".xls,.xlsx,.doc,.docx,.pdf,.msg" queueLimit="1">
            </div>


            <div class="c-red f13" style="clear:both;display: none;" id="fileupload_tip">上传中……</div>
            <div class="c-red f13" style="clear:both;display: none" id="fileupload_error">上传失败</div>
            <input type="hidden" id="fileupload_url" value="{{contractFile}}"/>

            <br><br>

            <div>
                <div style="height: 28px;display: inline-block;margin-right: 20px"
                     ng-if="(contractFile.__type != 'delete' && contractFile != '') ">
                    <a target="_blank" href="{{contractFile.document_path}}">{{contractFile.document_name}}</a>
                    <a class="glyphicon glyphicon-trash" title="删除附件" href="javascript: void(0)"
                       ng-click="delAttachment()"></a>
                </div>
            </div>

        </div>
    </div>
</form>